﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using ServiceConsumer;
using System.Web.Security;

public partial class Admin_CarrierManager : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!(Roles.IsUserInRole("Admin")))
        {
            Response.Redirect("~/Admin/Login.aspx");
        }

        if (!IsPostBack)
        {
            //string strUrlWS = "http://aspspider.info/m15tmdt/WebService.asmx";
            ////string strUrlWS = "http://moving10ws.somee.com/service.asmx";
            ////string sFromCity = "46";
            //object[] para = null;

            //object lstCity = WSProxy.CallWebService(strUrlWS, "CitiesList", para);
            //DataTable dtCities = WSProxy.ConvertType<DataTable>(lstCity);
            //Session["CitiesList"] = dtCities;

            //int objId = 0;

            //if (Request.QueryString["id"] != null)
            //    objId = Convert.ToInt32(Request.QueryString["id"].ToString());

            //CarrierServices carrier;

            //if (objId != 0)
            //{
            //    carrier = new CarrierServices(objId);
            //}
            //else
            //{
            //    carrier = new CarrierServices();
            //}

            //DataTable dtCities = carrier.CitiesList();
            //Session["CitiesList"] = dtCities;
        }
    }
}